package cn.itcast.dao.message;

import cn.itcast.domain.message.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageDao {
    void save(Message message);

    List<Message> findByMail(@Param("email") String email, @Param("i") Integer i);

    void update(Message message);

    void delete(String messageId);

    List<Message> findAll();

    List<Message> findByCompanyId(String companyId);

    List<Message> findByAllMail(String email);

    List<Message> findAllNoRead(Integer i);

    List<Message> findByCompanyIdNoRead(@Param("companyId") String companyId,@Param("i") Integer i);
}
